package com.lzh.eduservice.client;

import com.lzh.commonutils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;

@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {
    //服务方法
    @GetMapping("/educenter/member/getUserAllInfo/{request}")
    public UcenterMemberVo getUserAllInfo(@PathVariable("request") HttpServletRequest request);

    @GetMapping("/educenter/member/getMemberById/{memberId}")
    public UcenterMemberVo getMemberInfo(@PathVariable("memberId") String memberId);
}
